package com.tiancheng.trade.settlement.vo.settlement.export;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Data;
import lombok.ToString;

import jakarta.validation.constraints.NotNull;
import java.time.LocalDate;

/**
 * 汇总导出接口，查询条件
 */
@Data
@ToString
@JsonIgnoreProperties(ignoreUnknown = true)
public class SettleExportAllQueryVo {
    /**
     * 开始日期
     */
    @NotNull(message = "查询开始日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("start_date")
    private LocalDate startDate;

    /**
     * 结束日期
     */
    @NotNull(message = "查询结束日期不能为空")
    @JsonFormat(pattern = "yyyy-MM-dd")
    @JsonProperty("end_date")
    private LocalDate endDate;

}
